package com.junchao.peng.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author dell
 */
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String name;
    private String positionName;

    public Dept(Integer id, String name, String positionName) {
        this.id = id;
        this.name = name;
        this.positionName = positionName;
    }

    public Dept() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Dept)) {
            return false;
        }
        Dept dept = (Dept) o;
        return getId().equals(dept.getId()) && getName().equals(dept.getName()) && getPositionName().equals(dept.getPositionName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getName(), getPositionName());
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", positionName='" + positionName + '\'' +
                '}';
    }
}
